package org.example.controller;

import org.example.entity.User;
import org.example.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

    @RestController
    public class UserController {
        @Autowired
        UserMapper userMapper;
        @GetMapping("/All")
        private List<User> findAll(){
            return userMapper.findAll();
        }

    }

